﻿<%@ Page Title="" Language="C#" MasterPageFile="~/System/MasterPage_Base.master" AutoEventWireup="true" CodeFile="RoleModify.aspx.cs" Inherits="System_Account_RoleModify" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
<style type="text/css">
tr
{
}
.td1
{
	border:solid 1px #333333;
	background-color:#CCCCCC;
}

.td2
{
	border:solid 1px #333333;
}

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" Runat="Server">
    角色编辑
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
    <table border="0" style="border-collapse:collapse;">
        <col style="width:100px;" />
        <col style="width:360px;" />
        <tr>
            <td class="td1">角色名称</td>
            <td class="td2">
                <asp:TextBox ID="txt_RoleName" runat="server" CssClass="TextBox" Width="300"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" 
                ValidationGroup="Check" ControlToValidate="txt_RoleName"></asp:RequiredFieldValidator>
            </td>
            
        </tr>
        <tr>
            <td class="td1">状态</td>
            <td class="td2">
                <asp:RadioButtonList ID="radio_Valid" runat="server" 
                    RepeatDirection="Horizontal">
                    <asp:ListItem Text="启用" Value="1" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="禁用" Value="0"></asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="td1">权限</td>
            <td class="td2">
                <table class="DataList" style="width:100%;height:100%;">
                    <col width="auto" />
                    <col width="60px" />
                    <tr>
                        <th>模块名称</th>
                        <th>选择</th>
                    </tr>
                    <asp:Repeater ID="RepeaterList" runat="server">
                        <ItemTemplate>
                           <tr>
                                <td>
                                    <%#Eval("MenuName") %>
                                </td>
                                <td style="text-align:center">
                                    <asp:CheckBox ID="check_Menu" runat="server" />
                                    <asp:HiddenField ID="hd_MenuId" runat="server" Value='<%#Eval("MenuId") %>' />
                                </td
                            </tr> 
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
                
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align:right; padding-right:10px;">
                <asp:Button ID="btn_Submit" runat="server" Text="提交" CssClass="Button" 
                    onclick="btn_Submit_Click" ValidationGroup="Check"/>
                <input type="button" value="返回" class="Button" onclick="window.location.href='RoleList.aspx'" />
            </td>
        </tr>
    </table>
</asp:Content>

